using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace OpenWaves.Web
{
    [SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
    public sealed class PublicAssemblyResourcesAttribute : Attribute
    {
        private readonly List<string> resourceNames;

        public PublicAssemblyResourcesAttribute(string resourceName)
        {
            this.resourceNames = new List<string> {resourceName};
        }

        public PublicAssemblyResourcesAttribute(params string[] resourceNames)
        {
            this.resourceNames = new List<string>(resourceNames);
        }

        public IEnumerable<string> ResourceNames
        {
            get { return this.resourceNames; }
        }
    }
}